package com.challenge.smsservice.dormitorymanage.service.impl;

import com.challenge.smsbase.Service.impl.GenericManagerImpl;
import com.challenge.smsdao.dormitorymanage.dao.ApartmentDao;
import com.challenge.smsdao.dormitorymanage.domain.Apartment;
import com.challenge.smsservice.dormitorymanage.service.ApartmentManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * louzhiqiang
 */
@Component
public class ApartmentManagerImpl extends GenericManagerImpl<Apartment,Long> implements ApartmentManager {
    //inherit GenericManagerImpl
    ApartmentDao apartmentDao;

    /**
     * setApartmentDao
     * @param apartmentDao
     */
    @Autowired
    public void setApartmentDao(ApartmentDao apartmentDao) {
        this.apartmentDao = apartmentDao;
        this.dao = this.apartmentDao;
    }
}
